% LaTeX-chinese-template v0.4
% https://github.com/CTeX-org/ctex-kit/
%
% You may need to check the instructions at the end of this file.
% See the manual for the collection CTeX for more details.
%
\documentclass[UTF8, zihao=-4, a4paper]{ctexart}
\usepackage{hyperref}

\title{\LaTeX{} 中文文档模板}
\author{作者}

\begin{document}

\maketitle
\tableofcontents

\section{前言}

你好，\CTeX{} 文档类。

\section{正文}

世界你好！

\section{后记}

非常好！

\end{document}

----- How to Compile -----

This LaTeX manuscript should be saved as UTF-8 encoding, and be compiled by

* LaTeX - DVIPDFMx or,
* pdfLaTeX or,
* XeLaTeX or,
* LuaLaTeX.

Note that, the later two compiling method are recommended.

----- Fonts -----

The collection CTeX at version 2.0 or later has the ability to detect what
kind of operation system that you are using. As a result, the collection will
automatically choose an appropriate fontset for the specific OS.

* Mac OS X - SinoType（华文） will be selected
* Windows  - Sim（中易） will be selected
* Others   - Fandol, which is distributed alone with TeX Live, will be selected

Since the fontset SinoType couldn't work under pdfTeX, you may only use XeLaTeX
and/or LuaLaTeX on Mac OS X. Otherwise, you will have to choose a fontset
manually.

----- Environment -----

Tested with TeX Live 2015 on Mac OS X (10.9.5).

* xetex       r37058      3.14159265-2.6-0.99992 (TeX Live 2015)
* pdftex      r37159      3.14159265-2.6-1.40.16 (TeX Live 2015)
* luatex      r37078      Version beta-0.80.0 (TeX Live 2015) (rev 5228)

* CTeX        5d27e06     v2.0 2015/05/08
* CJK         r36951      v4.8.4
* xeCJK       r35946      v3.3.0
* LuaTeX-ja   r36992      20150420.0

Hope these information useful for TeX newbies :-)
  Liu Yubao <yubao.liu at gmail dot com>

ChangeLog:
  2009-09-11  Liu Yubao
      * initial version, v0.1

  2009-09-13  Liu Yubao
      * use zhwinfonts to embed truetype fonts with pdflatex and dvipdfmx
      * set hyperref properly for different encodings and TeX engines to avoid garbled bookmarks
      % release v0.2

  2010-06-20  Liu Haiyang
      * simpify zhwinfonts and hyperref, v0.3

  2015-05-08  Liam Huang
      * CTeX 2.0 is about to release
      * v0.4
